package cn.doctor.assistant.pad.db;

import android.database.sqlite.SQLiteDatabase;

import cn.doctor.assistant.pad.MyApplication;
import cn.doctor.assistant.pad.im.HXSDKHelper;


public class DBHelper {

	public static String getDBName(){
		return HXSDKHelper.getInstance().getHXId() + "_emmsg.db";
	}
	
	public synchronized static SQLiteDatabase getSQLiteDatabase(){
		return MyApplication.getInstance().openOrCreateDatabase(getDBName(), 0, null);
	}
	
}
